package com.webinsky.web;

import java.io.IOException;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "com.webinsky")
@MapperScan({
		"com.webinsky.persist",
		"com.webinsky.article.persist",
		"com.webinsky.folder.persist",
		"com.webinsky.publish.persist",
		"com.webinsky.site.persist"
})
public class App {
	public static void main(String args[]){
		try {
			System.getProperties().load(App.class.getResourceAsStream("/druid.properties"));
			SpringApplication.run(App.class);
		} catch (IOException e) {
			e.printStackTrace();
			System.out.println("===============   byebyte ================");
		}
	}
}
